/**
 * @filename:CheckInServiceImpl CheckIn
 * @project constract  V1.0
 * Copyright(c) 2018 lin keqing Co. Ltd. 
 * All right reserved. 
 */
package com.znufe.exam.service.impl;

import java.util.List;

import com.znufe.exam.repository.CheckInMapper;
import com.znufe.exam.viewmodel.vote.checkin.CheckInCountRequestVM;
import com.znufe.exam.viewmodel.vote.checkin.CheckInCountResponseVM;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znufe.exam.domain.CheckIn;
import com.znufe.exam.service.CheckInService;

/**   
 *  
 * @Description:  答题器签到信息表——SERVICEIMPL
 * @Author:       lin keqing   
 * @CreateDate:   CheckIn
 * @Version:      V1.0
 *    
 */
@Service
public class CheckInServiceImpl extends BaseServiceImpl<CheckIn> implements CheckInService {

	private final CheckInMapper checkInMapper;

	@Autowired
	public CheckInServiceImpl(CheckInMapper checkInMapper) {
		super(checkInMapper);
		this.checkInMapper = checkInMapper;
	}
	
	//查询对象
	@Override
	public CheckIn selectByPrimaryKey(Integer id) {
		return checkInMapper.selectByPrimaryKey(id);
	}
	
	//删除对象
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return checkInMapper.deleteByPrimaryKey(id);
	}
	
	//添加对象
	@Override
	public int insertSelective(CheckIn checkIn) {
		return checkInMapper.insertSelective(checkIn);
	}
	
	//修改对象
	@Override
	public int updateByPrimaryKeySelective(CheckIn checkIn) {
		return checkInMapper.updateByPrimaryKeySelective(checkIn);
	}
	
	//查询集合
	@Override
	public List<CheckIn> queryCheckInList(CheckIn checkIn) {
		return checkInMapper.queryCheckInList(checkIn);
	}

	@Override
	public CheckInCountResponseVM selectCheckInCount(CheckInCountRequestVM requestVM) {
		return checkInMapper.selectCheckInCount(requestVM);
	}

}